package com.spzx.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "商品规格")
@TableName(value = "product_spec")
public class ProductSpec extends BaseEntity {
    @TableField(value = "spec_name")
    @Schema(description = "规格名称")
    private String specName;
    @TableField(value = "spec_value")
    @Schema(description = "规格值")
    private String specValue;
    @TableField(value = "category_id")
    @Schema(description = "分类Id")
    private Long categoryId;
    @TableField(exist = false)
    @Schema(description = "分类名")
    private String categoryName;
    @TableField(exist = false)
    @Schema(description = "分类ID列表")
    private List<Long> categoryIdList;
}
